From: Richard M. Stallman Date: Sat, 25 Dec 1993 01:45:14 +0000 (+0000) Subject: Include systty.h. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~93712 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a129418f949cfb202c879274db8f4202d76fefd6;p=emacs.git Include systty.h. (child_setup): Use EMACS_SET_TTY_PGRP. --- diff --git a/src/callproc.c b/src/callproc.c index d46d8a32498..36f0d866ee3 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -55,6 +55,7 @@ extern char *sys_errlist[]; #include #include "process.h" #include "syssignal.h" +#include "systty.h" #ifdef VMS extern noshare char **environ; @@ -537,7 +538,8 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir) #else setpgrp (pid, pid); #endif /* USG */ - setpgrp_of_tty (pid); + /* setpgrp_of_tty is incorrect here; it uses input_fd. */ + EMACS_SET_TTY_PGRP (0, &pid); #ifdef vipc something missing here;